package com.bh.extend.mapper;

import com.bh.common.basemapper.RootMapper;
import com.bh.extend.domain.JcAbnormalDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 异常明细Mapper接口
 *
 * @author slx
 * @date 2023-04-24
 */
@Mapper
public interface JcAbnormalDetailMapper extends RootMapper<JcAbnormalDetail> {

    /**
     * 查询异常明细列表
     *
     * @param jcAbnormalDetail 异常明细
     * @return 异常明细集合
     */
    public List<JcAbnormalDetail> selectJcAbnormalDetailList(JcAbnormalDetail jcAbnormalDetail);

    /**
     * 查询异常明细列表
     *
     * @param abnormalId
     * @return 异常明细集合
     */
    public List<JcAbnormalDetail> selectJcAbnormalDetailListByAbnormalId(@Param("abnormalId") Long abnormalId);

    /**
     * 查询异常明细列表
     * @param jcAbnormalId
     * @return
     */
    public Integer countJcAbnormalDetailListByAbnormalId(@Param("jcAbnormalId") Long jcAbnormalId);
}
